package com.dkd.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dkd.system.mapper.TCodeRuleMapper;
import com.dkd.system.domain.TCodeRule;
import com.dkd.system.service.ITCodeRuleService;

/**
 * 系统编码规则Service业务层处理
 * 
 * @author chuyongshuo
 * @date 2025-08-08
 */
@Service
public class TCodeRuleServiceImpl implements ITCodeRuleService 
{
    @Autowired
    private TCodeRuleMapper tCodeRuleMapper;

    /**
     * 查询系统编码规则
     * 
     * @param id 系统编码规则主键
     * @return 系统编码规则
     */
    @Override
    public TCodeRule selectTCodeRuleById(Integer id)
    {
        return tCodeRuleMapper.selectTCodeRuleById(id);
    }

    /**
     * 查询系统编码规则列表
     * 
     * @param tCodeRule 系统编码规则
     * @return 系统编码规则
     */
    @Override
    public List<TCodeRule> selectTCodeRuleList(TCodeRule tCodeRule)
    {
        return tCodeRuleMapper.selectTCodeRuleList(tCodeRule);
    }

    /**
     * 新增系统编码规则
     * 
     * @param tCodeRule 系统编码规则
     * @return 结果
     */
    @Override
    public int insertTCodeRule(TCodeRule tCodeRule)
    {
        return tCodeRuleMapper.insertTCodeRule(tCodeRule);
    }

    /**
     * 修改系统编码规则
     * 
     * @param tCodeRule 系统编码规则
     * @return 结果
     */
    @Override
    public int updateTCodeRule(TCodeRule tCodeRule)
    {
        return tCodeRuleMapper.updateTCodeRule(tCodeRule);
    }

    /**
     * 批量删除系统编码规则
     * 
     * @param ids 需要删除的系统编码规则主键
     * @return 结果
     */
    @Override
    public int deleteTCodeRuleByIds(Integer[] ids)
    {
        return tCodeRuleMapper.deleteTCodeRuleByIds(ids);
    }

    /**
     * 删除系统编码规则信息
     * 
     * @param id 系统编码规则主键
     * @return 结果
     */
    @Override
    public int deleteTCodeRuleById(Integer id)
    {
        return tCodeRuleMapper.deleteTCodeRuleById(id);
    }
}
